﻿(function ()
{
    'use strict';

    var buildsServices = angular.module('buildsServices', ['ngResource']);

    buildsServices.factory('Builds', ['$resource',
      function ($resource)
      {
          return $resource('/api/builds/', { }, {
              query: { method: 'GET', url: '/api/builds/GetBuilds', params: { }, data: {}, isArray: true },
              getbuildlog: { method: 'POST', url: '/api/builds/GetBuildLog/', params: { }, data: {}, isArray: false },
              retry: { method: 'POST', url: '/api/builds/retry/', params: {}, data: {}, isArray: false }
      });
      }]);
})();